import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: "about" */ '../views/home/home.vue')

  },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "about" */ '../views/login/login.vue'),

  },
  {
    path: '/personcenter/:id',
    props:true,
    name: 'personcenter',
    component: () => import(/* webpackChunkName: "about" */ '../views/personCenter/personcenter.vue')

  },
  {
    path: '/suggest',
    name: 'suggest',
    component: () => import(/* webpackChunkName: "about" */ '../views/suggestionBox/suggestionBox.vue')

  },
  {
    path: '/resetps',
    name: 'resetps',
    component: () => import(/* webpackChunkName: "about" */ '../views/resetps/resetps.vue')

  },
  {
    path: '/statement',
    name: 'statement',
    component: () => import(/* webpackChunkName: "about" */ '../views/statement/statement.vue')

  },
  {
    path: '/contribute',
    name: 'contribute',
    component: () => import(/* webpackChunkName: "about" */ '../views/contribute/contribute.vue')

  },
  {
    path: '/album/:id',
    name: 'album',
    props:true,
    component: () => import(/* webpackChunkName: "about" */ '../views/album/album.vue')

  },
  {
    path: '/detail/:id',
    name: 'detail',
    props: true,
    component: () => import(/* webpackChunkName: "about" */ '../views/detail/detail.vue')

  },
  {
    path: '/community',
    name: 'community',
    component: () => import(/* webpackChunkName: "about" */ '../views/community/community.vue')

  },
  {
    path: '/forum/:id',
    name: 'forum',
    props:true,
    component: () => import(/* webpackChunkName: "about" */ '../views/community/forum.vue')

  },
  {
    path: '/editor',
    name: 'editor',
    component: () => import(/* webpackChunkName: "about" */ '../views/community/editor.vue')

  },
  {
    path: '/popularaze',
    name: 'popularaze',
    component: () => import(/* webpackChunkName: "about" */ '../views/popularaze/popularaze.vue')

  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
